import { FC } from "react";
import { useLocation } from "react-router-dom";
import { ListState } from "../../types";
const Index: FC = () => {
  const location = useLocation();
  const state = location.state as ListState;
  return (
    <>
      <img src={state.image} width={"100%"} alt="" />
      <h3>{state.title}</h3>
    </>
  );
};
export default Index;
